[SJS-205][TEST]: Write test for init() and api options and its readyStateChange