called setmode through super(). closes #10
corrected call to constants
update test to match api