Fix bad test teardown in details view test.