Fix/filter resources skip unknown keys

@aelgru how would you go about merging this? It might break backwards compatibility for other things due to the change to `filter_resources` but I consider the previous behaviour to be a bug.

Also I changed the tests I touched to use `fluentmock` so you might have to rebase your `pip_executable` branch.