Implement neighbors-of and slice, refactor tests