Added test for methods $$ and getElements