Use egg.text instead of egg.name & fix unit tests

It seems that merging the mounts branch to master broke the build, I've fixed the tests and found that egg.text should be used instead of egg.name in algos.coffee.