Preliminary tests. Basic polymorphic implementation.