added test for if zero credits
fixed support for zero credits
added labels