Bug fixed

Policy of clients was not checked.
Test added