rebuilt controller spec and testing
Added better classification of data types in json object