Added Flags to Register class along with Flag tests