column count check & added regression test