code style and tests