Functional tests (should not be in mockito package because of stack trace filtering)