Add test for buttoItem and fix render bug