Add chai and organize test dependencies