Rewrite TestUi to conform to AAA

- each dialog is verified individually
- verification does not require to be setup before action
Migrate implements builder test to hamcrest

- implement hamcrest primitives: Matcher and Expectation
- implement InstanceOf matcher