Switch between test and production environments