Fixing Gruntfile for testing and added test task.
Added ability to point to a function as the collection's path.