Write Test function added