use collection interfaces
adding expectedExceptions to the test