elem function tests