TODO: improve test field, add exit button, optimise