Add support for testing specific dirs or a single file

Also fixed some missing imports in the notebooks.