Fxi bug in group by query filtering for keys

A key error was raised when grouping and filtering on the same key.
Pep-8

@maxfliri
Move database cleanup to test setup

@maxfliri
More explicit data setup for each test

@maxfliri
Merge pull request #36 from alphagov/fix__week_start_at

Works.