Added more testcases for % to badNames

Better testing for #1352, which seems to be fixed already.