refactor zerocloud test framework

move some classes to different file and use functions that are more in line with current Swift test cases