Updating tests to not use assertions,when testing assertions. Adding
assertion for HasKey in maps.
Exporting helpers for individual use.