Modified getTopics() to test JSON output as opposed to HTML output.
Added temporary logging calls.
Modified getTopic() to test JSON output.
Adjusted getTopic() slightly.
Adjusted getTopics() slightly.