fix whitespace bug for pipeline and hub, add some negative test cases as well