Added functional tests for comment api