improve fibonacci calculation in test command