Unit tests for Firebolt.each()

Mostly copied from jQuery's unit tests.