fixed problem with format of TestAndClearReference or whatever it's called