removed dead parameter in test case
code formatting
code refactoring