[#1117] Optimize the reset_db() test helper function

This version is faster. Code from @joetsoi
[#1117] Remove an unused import
[#1117] Add helper decorators to navl/test_validators.py