Fix logger with tests
Add support for binary storage