Some fixes for getRules based on role after testing : STORM-76