Fix running tests from directory path with spaces

Prefer `File(URI uri)` constructor.

Signed-off-by: Alex Coles <alex@alexcolesportfolio.com>