add tests and isReady