clean up leveldb test
organize utility and test code and refactor to work with relative paths