Fixed tests to use JSONObjects instead of Strings for server responses.