Added unit test for the test() method

This is to make sure that method isn't broken. (as it was the case with S3)

Please review @DeepDiver1975 @icewind1991 @karlitschek @schiesbn