Move tests into a test package

Also fix some minor stylistic issues.
Merge pull request #44 from hynek/test_pkg

Move tests into a test package

Author: hynek, Reviewer: HawkOwl