Refactored Life/Treat Test into Jasmine format