update test fix typos and add more checking