add tests framework
start tests
fixes
add fields handler
add has function