coin tests, cleanup, err check