Tests and some minor improvements.

Improvements are: 
Added a creation helper that accepts a list of key, value tuples.
Switched check for reorder_keys to the new set of keys.

Tests written with pytest.