Test to see if toggle switches state

Two part test for toggle function.  In app.py, I added a new function to return the toggle state data without switching it.  In _test_frontend.py I added the test to compare toggle and the new function.