ADDED exception test
MODIFIED the comments for better descriptions