Unit test for account service added.
Some refactoring in test resources.