Refactors test
Adds port variable for Heroku
Corrects button identifier in test
Adds user variable and router to access JSON
Adds API test
api test working