write tests based on the docs when building