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