fixed some errors/warning reported by gulp test