refactor: fix consdering whether test method is static or not,

not declaring type of it.
dev: implement ConvertToTestCommand.