set up automatic tests, closes #26