migrating tests into example project, so that they can be executed within simulator