Fix bug with #load directive

* Fixes #113
* Added new test