Update test to use exposed endpoint