added random unittesting