fixed some bugs in and added some test cases for kvm pool manager component
finished test cases for script runner component