implement header table
added every test cases