added tests for inactive component bug
Automatic style corrections courtesy of autopep8