Test function for operations