add more unittests for constants.py