Fixed bugs in tests/mesos.hpp helpers.
Fixed bugs in tests/mesos.hpp helpers.

Segfault may occur on two function with v1 scenario:
1. createPersistentVolume().
2. createDiskResource().
These are due to the use of common 'Resources::parse()'. This patch
fixes this issue by replacing with 'TResources::parse()'.

Review: https://reviews.apache.org/r/57184/

verizonlabs/mesos,zmalik/mesos,Aman-Jain-14/customizedMesos,asamerh4/mesos,verizonlabs/mesos,abudnik/mesos,zmalik/mesos,Gilbert88/mesos,reneploetz/mesos,Aman-Jain-14/customizedMesos,abudnik/mesos,jpeach/mesos,andschwa/mesos,chhsia0/mesos,yuquanshan/customizedMesos,jpeach/mesos,dforsyth/mesos,gsantovena/mesos,craimbert/mesos,verizonlabs/mesos,Gilbert88/mesos,neilconway/mesos,gsantovena/mesos,chhsia0/mesos,reneploetz/mesos,andschwa/mesos,reneploetz/mesos,asamerh4/mesos,kaysoky/mesos,andschwa/mesos,zmalik/mesos,dforsyth/mesos,gsantovena/mesos,Gilbert88/mesos,kaysoky/mesos,chhsia0/mesos,jpeach/mesos,chhsia0/mesos,verizonlabs/mesos,gsantovena/mesos,neilconway/mesos,abudnik/mesos,craimbert/mesos,yuquanshan/customizedMesos,asamerh4/mesos,yuquanshan/customizedMesos,andschwa/mesos,craimbert/mesos,andschwa/mesos,kaysoky/mesos,reneploetz/mesos,abudnik/mesos,zmalik/mesos,verizonlabs/mesos,zmalik/mesos,dforsyth/mesos,dforsyth/mesos,jpeach/mesos,Aman-Jain-14/customizedMesos,verizonlabs/mesos,gsantovena/mesos,yuquanshan/customizedMesos,chhsia0/mesos,kaysoky/mesos,craimbert/mesos,zmalik/mesos,kaysoky/mesos,Aman-Jain-14/customizedMesos,andschwa/mesos,reneploetz/mesos,neilconway/mesos,yuquanshan/customizedMesos,abudnik/mesos,zmalik/mesos,asamerh4/mesos,Aman-Jain-14/customizedMesos,Gilbert88/mesos,gsantovena/mesos,jpeach/mesos,jpeach/mesos,neilconway/mesos,craimbert/mesos,craimbert/mesos,craimbert/mesos,verizonlabs/mesos,abudnik/mesos,reneploetz/mesos,abudnik/mesos,yuquanshan/customizedMesos,Gilbert88/mesos,dforsyth/mesos,neilconway/mesos,kaysoky/mesos,andschwa/mesos,chhsia0/mesos,Aman-Jain-14/customizedMesos,chhsia0/mesos,reneploetz/mesos,gsantovena/mesos,asamerh4/mesos,yuquanshan/customizedMesos,neilconway/mesos,jpeach/mesos,asamerh4/mesos,Gilbert88/mesos,Aman-Jain-14/customizedMesos,dforsyth/mesos,Gilbert88/mesos,neilconway/mesos,dforsyth/mesos,kaysoky/mesos,asamerh4/mesos