Make test pattern a bit more flexible so checks out on both windows and linux