Written test and code to make the test pass for creating navigation link between listing and detail page