Test for missing config file.
Fix for assertRaisesRegex in Python 2.7
Reduce the scope of with statement.
Added test for invalid JSON.
Seek to the beginning of temp file.
Added test for project not found error.