Fixed bug ctx was missing.
Fixed tests to work with change from from_directory / from_location to from_path.