Add test for the values filter.
Test that mode defaults to zero.
Centralise the creation of immutable locations.
Extract common method.
Fixed bad naming.