Added test cases using XCTest and Kiwi framework