Category model bug

Done for https://issues.jboss.org/browse/AGPUSH-1118

Needs to go to 1.0.x and master
Could you add a test where Categories are added to an installation but not passing categories in the criteria ?