Refactor tests on partial_view