Can I use my paid license for my testing environment as well as the production environment?

Yes, you can add multiple app identifiers per license to allow for this.