Add tests that multi custom class accept
Fix preg_match for custom class parameters