add static view methods(define/create/get) and update test cases
Merge pull request #36 from miller/master

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