added tests to app spec and aggregator spec, both passing