adjusted setupComponent to address #23
fixed failing test