first test case... already revealed a few bugs...