Fix #line directives and improve documented unit test for registerRestInterface.