Add regression test and fix whitespace within the class name string