added getFirstElementByClassName implementation and tests