added unit tests for performance comparison