Merge "Fix various bugs from static analysis in a test file" into tizen