Handler unit tests