Add tests. Turn on Spring logging

Change-Id: I0a7eee0dc050acf4f70ef5583cecdfa71f728f6e