fix matching typo in tests, restore missing assert