Added elementsVisible assertion and test

Signed-off-by: Derrick Schmidt <derrick@mobify.com>