fix tests
fix database tests
add processor tests
fix bugs in processors