set spring-test to test scope
add test SpringUtils
move business logic from view to  service
add DuplicateUsernameException
add UserServiceImpl Test
flush befor return User entity
add Test for EmailServiceImpl