TST: Add tests for from_file with file path

Add test cases for `from_file` method to check that file paths are
parsed correctly and incorrectly, to achieve this, test is now included
in the data directory.
MAINT: Add the test data to the package