Refactored namespaces and added tests
Added ApiResponse test