Add build-mode test cases to see if #1068 occurs