unit tests for complete method