object mutability unit testing