added test to check rotation matrix input as row or column