Added a missing test for file expand paths.

Should throw an error when the target is unspecified during path
expansion. This might be a bad place to check this in the future.