Unit tests modified to use ref files