fixed tests, and long overflow bug
Merge branch 'master' of https://github.com/proservice/betsys.git