Added testcase. Now uses mdstr.CommonPrefix instead of own