test setState