Fixed unittest for sonar (they now run at least...)