refactored DefaultView and corresponding test