Added unit tests for random string method
Added functional tests for test api