covering code with tests