Fixes #58 - Change error assertion

Assert that error occurs on line 7 rather than line 3