added writetest