Added tests for the definition service