added moveRandomly()
fixed typo
added invalid tests