Added tests for BaseDefinition