adding tests for ownsEphemeral function