fixed problem with location tests which sometimes made the random tests fail (if a / was one of the parameters). Fixes #642