Test for the proper exception, remove stray character left behind.