updated requirements and fixed tests