Added ref tests