get single record as json and test -- passed