fixed linter issues and added test.sh to automate