add castle injection test