Added callbacks in v2 entry endpoints, and added tests.