#523: add new test, fix detection with backslashes