Adds factory tests