add rejectEnv and basic.reject tests