tests revised to work properly. first test passed, second test failed