setup integration tests and fix js broken spec