Added environment tests and user functionalities