fix tests and handle bower errors