Fixed joi version and updated tests to match current joi syntax