Added test for different servlet mapping
Change from replace to substring because replace can change multiple occurences which is not what we want