Add pretest linting
Add automated sourcemap tests, fixes #3