unit tests for dynamic pool