Added new refs client
Added ref client test