Set environment and test routes