cleans up factories
adds tests for default platform shim
cleanup