all: add tests.

This would be very frowned upon in the Rails world. There, the comment would have been: 1. use config file and 2. avoid using privileged users for tests (should have same privs as the prod user).