Added unit tests for previously patched bug, where running an empty file would cause a crash.