test cases for class Level1Exercises

test cases were written for methods in class Level1Exercises. 2 bugs
were found and have been fixed.