Added 'expected' field to rule class