Added tests. Added bot engine.