move the test function to t::lib::Test so we can have multiple test script using them