An ultracold molecular beam for testing fundamental physics