Added dependency between all-rmt and all-api in tests/Makefile