test namepattern works