Adding test for number type

Both for int and float