add helper and tests
assertsame instead of assertequals
add function reshape