Unit tests: add tests for the points hooks order AJAX callback

Fixes #34