added getrecord method, but tests still fail