some tests with error measurement