* refactor given/when/then steps in spaces context
* pass the returned response without setting in then step
* added the missing when step whose response is checked by the then step
* addressed the reviews
* changed from decoded body to docoded response