First go at unit tests

call vendor/bin/phpunit to run tests.

Runs in "testing" environment. Separate database is recommended.