Fixing the endpoints test. Closes #7.