Added simple PSO and Generator tests.

Signed-off-by: Gary Pamparà <gpampara@gmail.com>