better tests for regexp