added twitter test code