Added tests for empty inputs to dollar, percent

Tests that zero length inputs work correctly.  Fixes issue 34.