Unit tests for the backend handlers.