finished sam tests