fix rafter startup for tests

Fix dependency startup issues with `application:ensure_all_started/1`.