Test more helper factory functions.
Remove unused function.