Added test for substr-pos