fix --max_depth= again and add behat test

closes #820
see #943