fixed some minor bugs in tests and ui