adding test files
added Api class methods