Created and have tests for the helper methods.