added unit tests for complex test