fixed typos and unnecessary statements, making the test run properly