Fixing _.getAttribute mixin
Adding more functions to mock aggregator in tests