Database connection factory was not yet passed to consent and it's factory
Added test for checking of filtered attributes are used