fixing tests
fixing tests and adding envs validation check