added test shape detector