added tests and removed lint errors