unit test for local strategy, some bugfixes in it
include account confirmation in test