Use system() to run tests

Change-Id: I589883d84a421723197feab1f9b3345ac62a9077