Small tested utility functions and modules.