rewrite test-error and applied partially
applied test-error more