added is_heap method to test class.