Fixed config issue
added debug test