Add new test to test_qubit and refactor test_qubit.py

There are two commits here:
1) The unit test for Qubit doesn't explicitly test qubit_values (they are tested for IntQubit). Add an assertion for this
2) Refactor much of the code in test_qubit to make it easier to read

This replaces pull request #8278