ticket:5 fixed test and delete table removal code