unit tests upgraded to XCTest framework