add concat() test for mutating inputs