Implements e2e test case of '/detail' and '/detail/{id}'.