removed print statement used for testing in topics().
More comprehensive tests for labeleddata.