Minor refactors. Add test for dialing of percentage filter. Pointed out a bug with it #smart.