I think this test function would be moved outer. :)