Added Test Project for API. Moved operations to its own class. Added bool input parameter in Api's constructor.