regex and routes tests