Implemented User#toJSON transformer and tests