Wrote a test for things entering active sets; fixed bug