Fixed unit test as with chosen locking session.load() throws an error if there is no record rather than returns null