Fix bugs in db_value_enum_value and db_value_enum_text found by unit tests, was checking type wrong. Fix bug in db_value_reset found by unit tests, did not reset primary_key.
Add the last unit tests for the classes.