Testing on subdomain

Is it possible to test plugin on sub domain and also install on live domain?

Absolutely, you shouldn’t run into any issues with that.