Added test structure for testing promises