add comments and started test file

test file to handle each of the 4 cases