added unit tests from complex_unit tests