better tests and code coverage
save and load context in DB