added test and really closes #278