Test for 313

Testcase for ticket #313

https://sourceforge.net/p/sveditor/bugs/313/