Fixed a bug with uploading substitution files. Added some unit test for PandorabotsAPI, specially for uploading file.