Environment Test Generation and Testing Functionality

Add environment testing functionality.