added 1 and 2 test.
added method for building expected result array