Add BuildKernel Test Case

1. Add BuildKernel test case (bash script, powershell log parser and XML
file)
2. fix small bugs