updated testcase for Python 3
extra unit test for lead time constraints