Fixed more bugs in test management