tests: Added a simple test to check that operator subclassing provides the union of base and subclass slots.