refactor unit test code

remove debug code. and shortcutting test code avoid setUp function called repeated