add static methods for view(define/create/get) and update testcases