Set application environment in test bootstrap