moving api under lib folder, adding test script