Add test to override programmatic definition from system properties.

fixes #45