Allowing empty amounts and add unit test to check that empty and non emp...

...ty amounts are allowed