Examples of using "昨日は試験があったんです。" in a sentence and their german translations:
Wir hatten gestern eine Prüfung.