Move view tests into view package.