Added some testcases and changed cover from double to int and float.