Support `make test`

and added a test for my work on the shims.
Merge pull request #49 from ingydotnet/make-test

Support `make test`