moved Java test and handled unknown currency