add platform unit tests