fix test app compile errors
fixed simulator test failure