Modulador and demodulador combined for testing purposes