Add kvdb test
Add tests for poster.go, refactored other tests