Add tests for three internal functions of leptus_handler module