move requires to top
ensure that spec use test environment