limits: add test.pl and adjust test.cf; change namespace; fix code