fixing test from configuration, adding test to security factory