implement vote controller with angular tests