added dummy code for optimize, filled dirty code for backtest, started writing tests for backtest