Update 10.rkt

Added tests and error checking