added test on entity table creation func