Added Debug class
added registration test
Registration test done