Basic functionality tests

This adds tests covering 93% of betterconfig.py (as measured with pytest-cov).
I hope the examples directory will also be useful to prospective users of the library.