test using simulator