Setup app environment and test environtment