test: use proper findjsobjects output format

Closes #6329