Fixes units tests to close temp files before compiling
Adds test case for single quoted import statement