changed mock() for double()
added configured? method