we should also add test for dimension extraction functions