added unit tests for Definition creation