[IMP] add test_ui
[IMP] test_ui shorter code
[IMP] phantomjs helper simplification