included tests in linting, fixed some linting errors