added tests and allowed EAPsum for md