updated test sketch