slope detect test and gravity test | ScratchStats