fixed server tests and added missing dependencies to karma file