Assert on file override behaviour.

Closes #1.