Added test cases for when there is no attributes param
in the request.

Fixed the behaviour of when there is no attributes param to
fir the API spec