Motor racing-Hamilton misses Barcelona test to rest sore foot