Fixed unit test and reverted phantomas version