fixed correct responses to parse the JSON and fixed specs for items controller