updated spec controller tests and factories, also set default_environment for test