added float test and fixed minor bug!