HW3: add test case for viewer

Signed-off-by: owwlo <owwlo@163.com>