jtong - add context and pass handler and fix bugs in all
jtong - refator all spec
jtong - extroduce all common functions which were depended on by specs