test for commute method on ref