init test env, init demo dir