add tests for services
minor refactoring on spring config
add some rest controllers