Prepare test for html view