Simplified the implementation of the accordion widget's active parameter. Added spec to test it.