inout tests refactoring