Coding style: Move constructor to front
Don't print anything in tests
Use a logger instead of printing to stdout