fixed Juint test, its not pretty, but should work now