fixed bug in the twisted mass test routine