This widget behaviour hadn't been correctly implemented with the new views. This commit also introduces some tests.