check for complex. passing all tests