Test function for stimulus is working