Added test for using abstract class.
Added test for properties in abstract class or trait.