created a test function to call memset