Fixed small bug in assertions on anonymous test