Fix for test-cases with semicolons - issue 149