Tests for file open method on User model