unit tests with jest; fix change event not fired on #clear.