Fixed bad coding stype in testdiagramscene.cpp

Signed-off-by: Andrei Preda <andreipreda07@gmail.com>
Made better tests for slotTestRenameItems

Signed-off-by: Andrei Preda <andreipreda07@gmail.com>