linting and added test