added some tests and finished editable text directive