extracted assertOld to utils and added unit test for it