test for getElements call