bug fixes for endpoint ordering
improved tests
improved exception messages
fixed for seda