add get dims
update get_variable
update tests