start building tests and fixing problems raised by tests