add tests for constants.py
remove dead code
Added tag 0.8.6 for changeset 51afbdf23bf5