refactor: added comment
added test case for formal method parameters