add mocks
add context and plugins tests

also quiet the logs for tests
style tweaks