updated the crumb code and fixed tests