align code style of directive tests with other tests
improve coverage of controller tests
add some service tests