tests for dispatcher and app