Moved posiform tests to test folder.
Do not use std::rand.