Updated test to include floating point numbers, fixed output bugs