cleans up for readability, and makes tests more explicit
formats options argument to be a valid server response
adds specs for formatting options argument