added server-based integration tests
fixed a test failure (dont use identityRepository)
Merge branch integration-test for #20