change the order of assertions
Raise an exception when record is not found.