Fixed default view_dir for Wrapper and added tests.