Prepare tests for x-platform. Move platform code to testplatform directory
Synchronize tests with android test project