turn examples from documentation into tests