Adding tests, including version in lib, fixing issue when parsing 0