UnconstrainedAgent now uses the updated logic similar to BufferAgent.
Added UnconstrainedAgent tests.