Added automated tests for REST API. Also removed unused entity Imported