Added promises to get and set and added one test case.