testing callback and next with values