tests made more flexible with regex