Add debug code

- Check whether class was created corrected