Framework for writing tests