Add failing test

Downcast in implementation is losing information.