testing different types of callbacks