Added empty packages and a test for the API v1

Created two packages in queues (api and api/v1)
added a api test to tests/unit/common. Also changed
the common/errors to include invalid operations
error used in test_api.

Change-Id: I32d7a2eebbde50e96cb49391b591c409e6ab6df2
Merge "Added empty packages and a test for the API v1"