Adding unit tests for Ensure helper methods.