Add some framework for tests; more interesting tests coming soon; references #5