Fixing eslint errors and unittests

Fixing function-style warnings in eslint codebase and increasing coverage slightly.