[tests] fixes contract test module

test had actually never run..
fixes a few more linter errors