fixed typo in main test case. Now tests all three versions