Add test for some simple determinstic factor functions