treat warnings as errors and update test scripts

@ericjungu self-merging