Mock NS API for testing or other purposes