[AS7-6664] Set the enabled attribute in the legacy enable/disable operations.

Added tests for each writable attribute. Fixed issues found by the tests.