added sam's tests