Reimplement TestRecordApi class, update tests, routes