Added a getAcceptedFiles() test.
Fixed getRejectedFiles() and added tests for it.