added test against endpoint