tests added for problem1
added semi-automatic testing for problem 2