Inconsistencies if class starts with backslash

If you define of share a class name starting with a backslash and later try to make the class without the first backslash then that would give some problems this fixes that. 

Added two test cases to show it.