More inteligent write test.