adds missing test
removes dead code