package import missing
added tests for bad input