Fixes broken unit tests and updates npm and bower dependencies