writing tests, updating API doc scaffolding