Tests for the handler