This book should help you understand phoenix testing https://shankardevy.com/phoenix-inside-out-mpf/#chapter-3.
If you are on Linux then install phantomjs following this guide i wrote here Problem with acceptance test in hound not starting server on port 4001