add the currencypattern attribute and extend the unittest