Added tests for stack and set active functions.