Initialize view for test