unit test about view