unit tests for quantum