share test code for tabling1,2