add fib function in test_command and fix semihosting