port tests from platform repo