Wrote util function to handle cases where the number 0 should count as a value and should not be replaced with a default.
split draw test into shape test and line test