To be frank, you are in testing and switching from testing to development is not that easy. They both are two different domains. If you get the opportunity of changing it then its great and you should definitely opt for it. If you are thinking for changing the domain you will have to face interview again and also have to prove them that you are worth this opportunity.
All the best.