#781 fix a bug
#781 add two more unit tests
#781 code refactor
#781 add a new API and its unit tests
#781 add weekly configure table method