added delete function

also to tests and documentation. fixed execution order of junit tests as
well.