Update tests to not mock __builtin__.open