Emulator-based embedded software unit testing method