improved UI tests, found and fixed bugs