created and ran a test on currency validity