written unittests to cover adding dimensions, relates to #189