Added a test environment and created tests