removed confusing, superfluous line-ending commas
changed a bunch of deepEqual()s to equal()
added test for multiple functions