Add various comments
Add various tests for empty input
Clean up some test code

This is just to follow the conventions of prior tests.