Bugfix for endpoint test