Updated test case to new Ionic way