adds decelerate and maxDecelerate tests, fixes accelerate method