Api class functionality

Api Unit testing + Api getSearch functionality