Using domain specific languages for writing tests