Fix for broken version compare  and updated test