Add test for exception when whitespace