added test functionality to shape(see apps/testsSuite)
plus
fixed fragment change on refresh