utils: added test that passes in a bad regex