added tests to topic subscribe feature.