wrote unit test for tuple